package com.atguigu.eduservice.client;

import com.atguigu.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 25169
 */
@FeignClient(value = "service-vod",fallback = VodFileDegradeFeignClient.class)
public interface VodClient {

    /**
     * 删除阿里云视频
     * @param id
     * @return
     */
    @DeleteMapping("/eduvod/video/deleteAlyVideo/{id}")
    R deleteAlyVideo(@PathVariable("id") String id);

    /**
     * 批量删除
     * @param videoIdList
     * @return
     */
    @DeleteMapping("/eduvod/video/deleteAlyVideos")
    R deleteAlyVideos(@RequestParam("videoIdList") List<String> videoIdList);
}
